package NG::Gen::Users::Events;
use strict;
use warnings;
use utf8;

sub after_create {
	my $self = shift;
	my $ret;
	if($ret = $self->chat_after_create){
		return $ret;
	}
	if($ret = $self->inventory_after_create){
		return $ret;
	}
	if($ret = $self->task_after_create){
		return $ret;
	}
	return $ret;
}
sub after_login {
	my $self = shift;
	$self->chat_after_login;
}
sub after_validate {
	my $self = shift;
	my $old_login = shift;
	$self->chat_after_validate($old_login);
}
sub after_logout{
	my $self = shift;
	$self->clear_cache;
}

sub before_remove {
	my $self = shift;
	$self->chat_before_remove;
	$self->task_before_remove;
}



1;
